package com.isaiah.oa.mapper;


import com.isaiah.oa.annotation.DataSource;
import com.isaiah.oa.pojo.User;

import java.util.List;

public interface UserMapper {
    @DataSource("master")
    int deleteByPrimaryKey(Integer id);
    @DataSource("master")
    int insert(User record);
    @DataSource("master")
    int insertSelective(User record);
    @DataSource("slave")
    User selectByPrimaryKey(Integer id);
    @DataSource("master")
    int updateByPrimaryKeySelective(User record);
    @DataSource("master")
    int updateByPrimaryKey(User record);
    @DataSource("slave")
    List<User> select();
}